MODSIGN: Make shash allocation failure fatal
authorBen Hutchings <ben@decadent.org.uk>
Sun, 5 May 2019 12:45:06 +0000 (13:45 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 11 Nov 2022 08:36:29 +0000 (08:36 +0000)
commitb13d526e0ff291cc59e3607c7a74cc00219a7fc4
treedcdeef001fc0b95c0a109b7dbca8b9ae44f65a11
parentd3599d067bc260b0b4dd715a8e7620b2ec59d5cd
MODSIGN: Make shash allocation failure fatal

mod_is_hash_blacklisted() currently returns 0 (suceess) if
crypto_alloc_shash() fails.  This should instead be a fatal error,
so unwrap and pass up the error code.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/all/db-mok-keyring
Gbp-Pq: Name modsign-make-shash-allocation-failure-fatal.patch
kernel/module/signing.c